home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / resume.d / 58-proc-sysfs-restore-state.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  361b  |  13 lines

  1. #!/bin/sh
  2. # Paul Sladen 2007-03-22
  3. # Restore saved /sys and /proc states following resume.
  4. # See suspend.d/??-proc-sysfs-restore-state.sh for details.
  5.  
  6. if [ -r /var/run/proc-sysfs-save-state ] ; then
  7.     while read WHERE foo WHAT ; do
  8.     if [ "x$foo" = "x=" -a -w "$WHERE" ] ; then
  9.         echo -n "$WHAT" > "$WHERE"
  10.     fi
  11.     done < /var/run/proc-sysfs-save-state
  12. fi
  13.